<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/jsp/sys/css.jsp"%>
<html>
<head>
</head>
<body class="childrenBody">
<style>
    .layui-form-label{
       width: 175px!important;
    }
</style>
<div style="margin:0px; background-color: white; margin:0 10px;" class="search">
    <form class="layui-form layui-form-pane" action="" id="azdbqryForm">
        <div class="layui-tab layui-tab-card">
            <div class="layui-form-item">
        		<div class="layui-inline">
                    <label class="layui-form-label">航空器型号和制造人：</label>
                    <div class="layui-input-inline" style="width: 200px;">
                        <input type="text" placeholder="请输入航空器型号和制造人" class="layui-input search_input" name="s_airModel" id="s_airModel" >
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">国籍标志和登记标志：</label>
                    <div class="layui-input-inline" style="width: 200px;">
                        <input type="text" placeholder="请输入国籍标志和登记标志" class="layui-input search_input" name="s_sign" id="s_sign">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">航空器出厂序列号：</label>
                    <div class="layui-input-inline" style="width: 200px;">
                        <input type="text" placeholder="请输入出厂序列号" class="layui-input search_input" name="s_ccxlh" id="s_ccxlh">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
            <div class="layui-inline">
					<label class="layui-form-label" >飞机状态：</label>
					<div class="layui-input-inline" style="width: 200px;">
						<select name="s_airZt" class="layui-input" lay-filter="s_airZt" id="s_airZt" >
								<option value="">--请选择--</option>
								<c:forEach items="${cp:DICTIONARY('AIRZT')}" var="row">
				         			<option value="${row.dataCode }" >${row.dataValue }</option>
				   				</c:forEach>
					</select>
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label" >飞机性质：</label>
					<div class="layui-input-inline" style="width: 200px;">
					<select name="s_nature" class="layui-input" lay-filter="s_nature" id="s_nature" >
								<option value="">--请选择--</option>
								<c:forEach items="${cp:DICTIONARY('AIRXZ')}" var="row">
				         			<option value="${row.dataCode }" >${row.dataValue }</option>
				   				</c:forEach>
					</select>
					</div>
				</div>
            </div>
            <!-- 按钮组 -->
            <div class="layui-form-item large searchBtns">
                <div class="layui-btn-group">
                   <a class="layui-btn onQuery">查询</a>
                    <button type="reset" class="layui-btn">重置</button>
                </div>
                <div class="layui-btn-group">
				 <a class="layui-btn onAdd">新增</a>
				</div>
            </div>
        </div>
    </form>

    <table lay-data="{url:'${pageContext.request.contextPath}/service/airplanebaseinfo/airplanebaseinfo',page:true}"
           class="layui-table" lay-filter="modelInfo" id="modelInfo">
        <thead>
       		<tr>
	            <th lay-data="{type:'numbers'}">序号</th>
	            <th lay-data="{field:'airZt',align:'center'}">飞机状态</th>
	            <th lay-data="{field:'nature',align:'center'}">飞机性质</th>
	            <th lay-data="{field:'endTime',align:'center',templet:'#dateForMat',sort: true}">租赁到期日期</th>
	            <th lay-data="{field:'sign',align:'center'}">国籍标志和登记标志</th>
	            <th lay-data="{field:'airModel',align:'center'}">航空器型号和制造人</th>
	            <th lay-data="{field:'ccxlh',align:'center'}">航空器出厂序号</th>
	            <th lay-data="{field:'haveName',align:'center'}">所有人名称</th>
	           <!--  <th lay-data="{field:'status',align:'center'}">当前步骤</th> -->
	            <th lay-data="{width:200,align:'center',toolbar: '#operator_bar', fixed: 'right'}">操作</th>
	        </tr>
        </thead>
    </table>
</div>
<script type="text/html" id="operator_bar">
    <a class="see" lay-event="view">查看</a>
	{{# if(d.edit == '0'&&d.airZt === '实际运营'){ }}	
		<a class="bjcz" lay-event="uphold">维护</a>
	{{# } if(d.roleType == '0'&&d.airZt === '实际运营'){ }}
		<a class="bjcz" lay-event="edit">维护</a>
    {{# }if(d.status == '未提交'){ }}
		<a class="bjcz" lay-event="edit">编辑</a>
		<a class="sccz" lay-event="delete">删除</a>
 	{{#  } else{}}
	{{#  } }}
</script>
<script type="text/html" id="dateForMat">
 {{timeStr(d.endTime)}}
   
</script>
</body>
<script type="text/javascript" src="${pageContext.request.contextPath}/modules/airplanebaseinfo/airplanebaseinfo/ctrl/airplanebaseinfo.js"></script>
<script>
	var basePath= "${pageContext.request.contextPath}";
	function timeStr(str) {
	    if (str != null && str != undefined && str != "undefined" && str != "") {
	        return str.substr(0, 10);
	    } else {
	        return "";
	    }

	}
</script>
</html>
